prefix=/usr
USRBINDIR=$(DESTDIR)$(prefix)/bin

CXX = gcc
CPPFLAGS =`pkg-config libpulse libpulse-simple --cflags`
CXXFLAGS = -Wall `pkg-config libpulse libpulse-simple --libs`
INSTALL = install
PROG = pacat_test_example
AUDIOFILE = Front_Center.wav

LDFLAGS =

OBJS = pacat.o

pacat: $(OBJS)
	#$(CXX) -o $@ $(CXXFLAGS) $(LDFLAGS) $(OBJS)
	$(CXX) -o $(PROG) $(CXXFLAGS) $(LDFLAGS) $(OBJS)

clean:
	rm -f $(PROG) *.o *~ core *.core

install :
	$(INSTALL) -m 755 $(PROG) $(AUDIOFILE) $(USRBINDIR)/

